kfraser@localhost.localdomain [Thu, 21 Sep 2006 08:37:03 +0000 (09:37 +0100)]
[LINUX] Provide permanent global version of machine_e820 map for
general use.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 20 Sep 2006 17:41:44 +0000 (18:41 +0100)]
[XEN] Move mark_dirty() from alloc_page_type() to get_page_type(),
for symmetry with put_page_type(). Limit calls to mark_dirty() in
put_page_type() so that they happen only for page-table pages.
Signed-off-by: Keir Fraser <keir@xensource.com>
Emmanuel Ackaouy [Wed, 20 Sep 2006 17:33:26 +0000 (18:33 +0100)]
merge
Emmanuel Ackaouy [Wed, 20 Sep 2006 17:32:54 +0000 (18:32 +0100)]
fix -xen x86_32 linux build
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
kfraser@localhost.localdomain [Wed, 20 Sep 2006 16:59:30 +0000 (17:59 +0100)]
[XEN] Trivial simplification.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 20 Sep 2006 16:58:10 +0000 (17:58 +0100)]
[XEN] Clean up mark_dirty() usage in mm.c some more.
Add clarifying comments. Move mark_dirty() in alloc_page_type()
to end of the function (more correct).
Signed-off-by: Keir Fraser <keir@xensource.com>
Steven Hand [Wed, 20 Sep 2006 15:52:15 +0000 (16:52 +0100)]
Simplify + fix previous cset (remove_all_shadows() is indeed required :-)
Signed-off-by: Steven Hand <steven@xensource.com>
Steven Hand [Wed, 20 Sep 2006 15:22:06 +0000 (16:22 +0100)]
Ensure page-table pin changes are noted in shadow log-dirty mode.
Also mark dirty in put_page_type() instead of free_page_type()
Signed-off-by: Steven Hand <steven@xensource.com>
kfraser@localhost.localdomain [Wed, 20 Sep 2006 11:02:13 +0000 (12:02 +0100)]
[LINUX] Backport PCI MMCONFIG patch from 2.6.17 -- only use MMCONFIG
access method if the memory area is reserved in the E820 map.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 20 Sep 2006 08:56:50 +0000 (09:56 +0100)]
[XEN] Fix arg clobber test for debug version of hypercall code.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 20 Sep 2006 08:48:41 +0000 (09:48 +0100)]
[XEN][X86_64] Remove hardcoded addresses in x86/64 boot assembly.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Tue, 19 Sep 2006 15:33:01 +0000 (16:33 +0100)]
[XEN] Upgrade some platform files to Linux 2.6.17.13.
Signed-off-by: Keir Fraser <keir@xensource.com>
Christian Limpach [Tue, 19 Sep 2006 13:26:47 +0000 (14:26 +0100)]
[linux patches] Update patches for linux-2.6.16.29.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
--HG--
rename : patches/linux-2.6.16.13/blktap-aio-16_03_06.patch => patches/linux-2.6.16.29/blktap-aio-16_03_06.patch
rename : patches/linux-2.6.16.13/device_bind.patch => patches/linux-2.6.16.29/device_bind.patch
rename : patches/linux-2.6.16.13/fix-hz-suspend.patch => patches/linux-2.6.16.29/fix-hz-suspend.patch
rename : patches/linux-2.6.16.13/fix-ide-cd-pio-mode.patch => patches/linux-2.6.16.29/fix-ide-cd-pio-mode.patch
rename : patches/linux-2.6.16.13/i386-mach-io-check-nmi.patch => patches/linux-2.6.16.29/i386-mach-io-check-nmi.patch
rename : patches/linux-2.6.16.13/ipv6-no-autoconf.patch => patches/linux-2.6.16.29/ipv6-no-autoconf.patch
rename : patches/linux-2.6.16.13/net-csum.patch => patches/linux-2.6.16.29/net-csum.patch
rename : patches/linux-2.6.16.13/net-gso-0-base.patch => patches/linux-2.6.16.29/net-gso-0-base.patch
rename : patches/linux-2.6.16.13/net-gso-1-check-dodgy.patch => patches/linux-2.6.16.29/net-gso-1-check-dodgy.patch
rename : patches/linux-2.6.16.13/net-gso-2-checksum-fix.patch => patches/linux-2.6.16.29/net-gso-2-checksum-fix.patch
rename : patches/linux-2.6.16.13/net-gso-3-fix-errorcheck.patch => patches/linux-2.6.16.29/net-gso-3-fix-errorcheck.patch
rename : patches/linux-2.6.16.13/net-gso-4-kill-warnon.patch => patches/linux-2.6.16.29/net-gso-4-kill-warnon.patch
rename : patches/linux-2.6.16.13/pmd-shared.patch => patches/linux-2.6.16.29/pmd-shared.patch
rename : patches/linux-2.6.16.13/rcu_needs_cpu.patch => patches/linux-2.6.16.29/rcu_needs_cpu.patch
rename : patches/linux-2.6.16.13/rename-TSS_sysenter_esp0-SYSENTER_stack_esp0.patch => patches/linux-2.6.16.29/rename-TSS_sysenter_esp0-SYSENTER_stack_esp0.patch
rename : patches/linux-2.6.16.13/series => patches/linux-2.6.16.29/series
rename : patches/linux-2.6.16.13/smp-alts.patch => patches/linux-2.6.16.29/smp-alts.patch
rename : patches/linux-2.6.16.13/tpm_plugin_2.6.17.patch => patches/linux-2.6.16.29/tpm_plugin_2.6.17.patch
rename : patches/linux-2.6.16.13/x86-elfnote-as-preprocessor-macro.patch => patches/linux-2.6.16.29/x86-elfnote-as-preprocessor-macro.patch
rename : patches/linux-2.6.16.13/x86-increase-interrupt-vector-range.patch => patches/linux-2.6.16.29/x86-increase-interrupt-vector-range.patch
rename : patches/linux-2.6.16.13/x86-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch => patches/linux-2.6.16.29/x86-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch
rename : patches/linux-2.6.16.13/x86_64-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch => patches/linux-2.6.16.29/x86_64-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch
rename : patches/linux-2.6.16.13/xen-hotplug.patch => patches/linux-2.6.16.29/xen-hotplug.patch
rename : patches/linux-2.6.16.13/xenoprof-generic.patch => patches/linux-2.6.16.29/xenoprof-generic.patch
Christian Limpach [Tue, 19 Sep 2006 13:26:22 +0000 (14:26 +0100)]
[linux] Update to linux-2.6.16.29.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
kfraser@localhost.localdomain [Tue, 19 Sep 2006 10:13:10 +0000 (11:13 +0100)]
[XEN] Fix the emulation of instructions in vm86 mode. It fetches
them using cs and eip instead of only eip. This makes it at least
possible to use the i945GM vesa bios from the running system.
Signed-off-by: Bastian Blank <waldi@debian.org>
kfraser@localhost.localdomain [Tue, 19 Sep 2006 10:08:11 +0000 (11:08 +0100)]
[XENMON] Add argument check of "--ms_per_sample" option.
If a value of "--ms_per_sample" option is larger than a value of
"--time" option, xenmon may generate no log file. So, too large
"--ms_per_sample" should be treated as an error.
e.g.
% xenmon.py --ms_per_sample=2000 -t 1 -n
usage: xenmon.py [options]
xenmon.py: error: option --ms_per_sample: too large (> 1000 ms)
# Notice that a unit of "--time" is a second.
Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
kfraser@localhost.localdomain [Tue, 19 Sep 2006 10:03:36 +0000 (11:03 +0100)]
[HVM][SVM] Add cr8 intercept to/from code for SVM.
Add proper vlapic unmapping and freeing in the svm relinquish
resources.
Signed-off-by: Tom Woller <thomas.woller@amd.com>=20
kfraser@localhost.localdomain [Tue, 19 Sep 2006 10:03:12 +0000 (11:03 +0100)]
[HVM][SVM] This patch cleans up the SVM CPUID logic a bit, adds proper clearing
of MCA/MCE bits, and also ties clearing the PAE bit with the NX bit. We
have seen issues with Solaris if the NX bit is set but the PAE bit is
not.
Signed-off-by: Tom Woller <thomas.woller@amd.com>=20
kfraser@localhost.localdomain [Tue, 19 Sep 2006 10:01:05 +0000 (11:01 +0100)]
[HVM] getmemlist hypercall returns pages in strict
physmap order.
From: Ke Yu <ke.yu@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 19 Sep 2006 09:50:10 +0000 (10:50 +0100)]
[XEN][X86_64] USe GLOBAL bit to build user mappings.
Avoids need to flush user mappings when switching between
user and kernel contexts.
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 19 Sep 2006 08:40:26 +0000 (09:40 +0100)]
Merge with xenppc-unstable-merge.hg
Hollis Blanchard [Mon, 18 Sep 2006 19:28:16 +0000 (14:28 -0500)]
[POWERPC] merge with xen-unstable.hg
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
kfraser@localhost.localdomain [Mon, 18 Sep 2006 17:17:54 +0000 (18:17 +0100)]
Clean up dom0_vga_console_info structure for v3.0.3.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 18 Sep 2006 13:25:26 +0000 (14:25 +0100)]
Revert 11475:
11645dda144c3c8365dd2a6a64cb5a7d7da01170
Signed-off-by: Keir Fraser <keir@xensource.com>
Jimi Xenidis [Mon, 18 Sep 2006 13:23:51 +0000 (09:23 -0400)]
[POWERPC][XEN] Track the Hard CPUID as configured by the FW
This patch correctly implements and supports hard_smp_processor_id().
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
kfraser@localhost.localdomain [Mon, 18 Sep 2006 13:15:03 +0000 (14:15 +0100)]
[XEN] Remove backpointer info from page type info. No longer used.
Replace with a flag for PAE final L2, needed for detecting PAE L2's
which contain Xen mappings.
This is a fixed version of 11438:
965df40965e5fa684e0c8fe38dc4950af5b37c84
Signed-off-by: Keir Fraser <keir@xensource.com>
Jimi Xenidis [Mon, 18 Sep 2006 12:14:46 +0000 (08:14 -0400)]
[POWERPC][XEN] Fix definition of SCOMC register
Fix some typos aroung machine check too.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Ewan Mellor [Fri, 15 Sep 2006 22:54:04 +0000 (23:54 +0100)]
Revert change to vtpm_utils related to skipping the test when the tpm is not
found -- we need to skip the test on non-TPM platforms, of course.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Jimi Xenidis [Fri, 15 Sep 2006 22:20:55 +0000 (18:20 -0400)]
[POWERPC][XEN] Add newlines on multiline output and dump SLB on SLB errors
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Fri, 15 Sep 2006 22:19:46 +0000 (18:19 -0400)]
[POWERPC][XEN] Sync console around program exceptions
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
jchesterfield@wicket.uk.xensource.com [Fri, 15 Sep 2006 17:48:24 +0000 (18:48 +0100)]
Adding max block device timeout of 30 secs for live migrate.
kaf24@firebug.cl.cam.ac.uk [Fri, 15 Sep 2006 10:17:26 +0000 (11:17 +0100)]
[XEN] Scheduler pings only CPUs in a VCPU's affinity mask to balance load.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 15 Sep 2006 10:07:25 +0000 (11:07 +0100)]
[MINIOS] Fix to use new event-channel API properly.
Signed-off-by: Mark Williamson <mark.williamson@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Fri, 15 Sep 2006 10:04:41 +0000 (11:04 +0100)]
[HVM] Remove a useless header file include in hvm.c
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 15 Sep 2006 10:01:58 +0000 (11:01 +0100)]
Small fix for xenoprof.
Update list of privileged xenoprof operations which were not in sync
with new added functions.
Since the number of privileged operations is larger than the non
privileged ones, change the logic to list unprivileged ones instead.
Also added a few printk statements on failed xenoprof initialization
to identify the source of the problem.
Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 15 Sep 2006 09:59:18 +0000 (10:59 +0100)]
[XEN] Fix array ngative accesses in figlet tool.
Signed-off-by: Keir Fraser <keir@xensource.com>
Jimi Xenidis [Fri, 15 Sep 2006 02:06:15 +0000 (22:06 -0400)]
[POWERPC][XEN] Fix infinite loop caused by hdec storm
This was the cause of the periodic hang on secondary processors that has
been holding back the submission of the SMP patch.
Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Thu, 14 Sep 2006 18:20:48 +0000 (14:20 -0400)]
[POWERPC][XEN] Clean up init_frame_table()
figure out its size correctly and remove unused global
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
hollisb@localhost [Mon, 18 Sep 2006 18:21:39 +0000 (13:21 -0500)]
[XEN][POWERPC] Whitespace.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Hollis Blanchard [Thu, 14 Sep 2006 16:13:54 +0000 (11:13 -0500)]
[XEN][POWERPC] Fix build break.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Thu, 14 Sep 2006 15:11:00 +0000 (11:11 -0400)]
[POWERPC][XEN] add ofd_strstr() that checks all strings from an OF property
Some OF properties can have a list of '\0' terminated strings, we
frequently need to strstr against all of them.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 14 Sep 2006 15:01:46 +0000 (16:01 +0100)]
[XEN] Do not steal work from idle CPUs. This can happen
if a idle CPU is in the process of waking up.
This fix suggested by Anthony Xu <anthony.xu@intel.com> as
it can have a significant boost to HVM performance.
Signed-off-by: Keir Fraser <keir@xensource.com>
Jimi Xenidis [Thu, 14 Sep 2006 14:20:16 +0000 (10:20 -0400)]
[POWERPC][XEN] break out the ppc970.c functionality
getting way to crowded in there.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Thu, 14 Sep 2006 14:17:23 +0000 (10:17 -0400)]
[POWERPC][XEN] Better explane the larx/stcx issue with interrupts
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
root@procyon [Thu, 14 Sep 2006 07:19:41 +0000 (08:19 +0100)]
In this patch, the xc_domain_dumpcore_via_callback() in xc_core.c of
libxc is modified. Previously, the xc_domain_dumpcore_via_callback()
did not respond to error when copy_from_domain_page() failed.
In other words, the dump core remained silent even if mapping the domain
memory failed and its page could not be copied. When this happened,
erroneous data had been dumped to the file without the user realizing it.
Now, it has been modified so that if copy_from_domain_page fails,
this fact is recorded in the logfile and make imcoplerte-list.
However even in such cases, the dumping will continue as before.
Signed-off-by: Ken Hironaka <hironaka.ken@soft.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
root@procyon [Thu, 14 Sep 2006 07:19:39 +0000 (08:19 +0100)]
This patch add localtime to dumpcore filename.
And it add '-imcomplete' if failed.
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
root@procyon [Thu, 14 Sep 2006 07:19:38 +0000 (08:19 +0100)]
xm dump command add on
xm dump-core [-L|--live][-C| --crash] <domID> [output path]
-L| --live Live dump:
By default, xm dump does an xm pause, unpause before and
after taking the dump, respectively. This option disables
the pause/unpause and simply takes the dump.
-C :| --crash crash dump:
This executes an xm destroy after the dump file is complete.
The output path is optional, and if it is not specified, the path will be
/var/xen/dump/<domU name>.<domU ID>.core
This command uses the existant dumpCore(), which has been used for
coredump when a domU crashed.
Signed-off-by: Ken Hironaka <hironaka.ken@soft.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Ewan Mellor [Thu, 14 Sep 2006 07:18:56 +0000 (08:18 +0100)]
Remove the '-instance' parameter from the qemu device model. Since this parameter
is not interpreted by the DM, it actually causes the DM to hang if
passed. Future device model support for the vTPM will read parameters
from the xenstore and won't need the command line parameter(s).
The patch includes a small change to the debugging output for the vTPM
module.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Ewan Mellor [Thu, 14 Sep 2006 06:57:41 +0000 (07:57 +0100)]
When redirecting the output of the echo command using '>' on bash, the
output seems to be broken up into multiple write()s (depending on the
version of busybox?). Unfortunately /dev/tpm0 needs to have the complete
command written to in one chunk. The work-around 'echo <string> > file ;
cat file > /dev/tpm0' seems to get around this problem.
The patch also removes a redundant test and error output.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Ewan Mellor [Thu, 14 Sep 2006 06:55:28 +0000 (07:55 +0100)]
This patch adds syntax checking for "xm block-attach" command.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Ewan Mellor [Thu, 14 Sep 2006 06:55:27 +0000 (07:55 +0100)]
Show the usage message if invalid arguments are given to xm sysrq.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Jimi Xenidis [Thu, 14 Sep 2006 05:41:13 +0000 (01:41 -0400)]
[POWERPC][XEN] Safety with foreign get_page() calls and RMA
The following patch deals with get_page() possibly failing for H_ENTER
on a foreign page and returning the correct error. We also tag and
checke that a put_page() for RMA pages will panic (for now) if the
domain is _not_ dying.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Thu, 14 Sep 2006 05:36:39 +0000 (01:36 -0400)]
[POWERPC][XEN] Inline clear_page() and use DCBZ to optimize
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Thu, 14 Sep 2006 05:12:26 +0000 (01:12 -0400)]
[POWERPC][XEN] Define all cache information globaly
Rather than use the config.h macro
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Wed, 13 Sep 2006 22:41:11 +0000 (18:41 -0400)]
[POWERPC][XEN] Track pages correctly
The following patch tracks and frees pages correctly. It solves the problem where a foreign mapping would zombie a domain because the refcnts remained.
This involved:
- implement relinquish_memory() for PowerPC
- remove free_rma() since all pages get "relinquished" now.
- foreign pages are get and put correctly
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 13 Sep 2006 14:59:14 +0000 (15:59 +0100)]
[HVM] Fix an error when read from APIC registers like IRR, ISR and TMR.
From SDM3 spec, for APIC registers, all 32-bit registers should
be accessed using 128-bit aligned 32bit loads or stores.
And wider registers (64-bit or 256-bit) must be accessed using
multiple 32-bit loads or stores.
In old APIC virtualization code, we use IRR, ISR and TMR which are
256-bit registers as contiguous bit maps other than multiple 32-bit.
So guest always fetch error values.
Original patch was:
* Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
* Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
* Signed-off-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 13 Sep 2006 14:15:27 +0000 (15:15 +0100)]
[GDBSERVER] make gdbbuild exit on error
If an error occurs, such as wget failing because the site (or proxy)
is unavailable, the script will now terminate, rather than trying
to soldier on without any real hope of success.
mkbuildtree should really get the same treatment, but that
can wait for another day.
Signed-Off-By: Simon Horman <horms@verge.net.au>
kaf24@firebug.cl.cam.ac.uk [Wed, 13 Sep 2006 14:14:24 +0000 (15:14 +0100)]
[XEN] Use C locale in bootup message.
LC_ALL=C is needed to ensure C locale output in date.
Without this locale-specific, and thus potentially
non-ascii data will end up in include/xen/compile.h which
is displayed on the (often only ascii capable) terminal
at bootup. In any case, its good to have a consistent bootup
message, regadless of the locale prevailing at build.
Signed-Off-By: Simon Horman <horms@verge.net.au>
kaf24@firebug.cl.cam.ac.uk [Wed, 13 Sep 2006 13:46:54 +0000 (14:46 +0100)]
[XEN] Allow direct reads of port 0x61 by any guest.
Often used by BIOS code which may be executed e.g., when starting
an X server.
From: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 13 Sep 2006 13:34:34 +0000 (14:34 +0100)]
Fix unmodified drivers for PV-on-HVM on IA64.
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 13 Sep 2006 13:30:06 +0000 (14:30 +0100)]
[XEN][X86_64] Allocate multiple L2 page directories for
the read-only M2P table mapping, if required.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 13 Sep 2006 13:24:42 +0000 (14:24 +0100)]
Better PIC code production: Using #pragma GCC visibility, *all*
data references benefit, not just the ones to objects defined in the
same translation unit. However, as this now is a header file change,
detection logic cannot be used as nicely, so I guess we want to keep the
previous change and add this one on top.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 13 Sep 2006 13:12:28 +0000 (14:12 +0100)]
[HVM] Add broadcast destination for physical destination mode in
VLAPIC.
Based on a patch from Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 13 Sep 2006 13:05:33 +0000 (14:05 +0100)]
Add new operation XENOPROF_get_buffer in xenoprof hypercall. Also
remove buffer related arguments from XENOPROF_init operation. This
is the first step to allow dynamic mapping/unmapping of xenoprof
buffers to
enable profiling a domain in passive mode and then switch to active
mode (or vice-versa). Currently a domain can only be profiled in a
single mode. Also passive domains cannot have oprofile builtin the
kernel or passive profiling will fail.
Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 13 Sep 2006 13:01:23 +0000 (14:01 +0100)]
[CONSOLED] Shouldn't call domain_create_ring() for a domU which is shutting down.
There is a race condition between domain_create_ring() and the removal
of the domU entry from xenstore. If the removal of the domU entry from xenstore
comes later than the first xs_gather() call in domain_create_ring(), it will go
on and bind the evtchn port to the dying domU, which will cause below error
message: (XEN) (file=event_channel.c, line=144) EVTCHNOP failure: domain 0, error -22, line 144
Signed-off-by: Max Zhen <max.zhen@sun.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 13 Sep 2006 12:54:59 +0000 (13:54 +0100)]
[TOOLS] Enhance Python version check for v2.5.
From: Charles Coffing <ccoffing@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 13 Sep 2006 12:52:03 +0000 (13:52 +0100)]
[XEN] Define -fvisibility=hidden in CFLAGS to reduce -fpic cost
when compiling for x86/64.
Signed-off-by: Keir Fraser <keir@xensource.com>
Hollis Blanchard [Tue, 12 Sep 2006 19:28:16 +0000 (14:28 -0500)]
[XEN][POWERPC] Split dom0_ops.c into domctl.c and sysctl.c.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
awilliam@xenbuild.aw [Tue, 12 Sep 2006 17:43:22 +0000 (11:43 -0600)]
merge with xen-unstable.hg
awilliam@xenbuild.aw [Tue, 12 Sep 2006 17:42:27 +0000 (11:42 -0600)]
[IA64] swiotlb clash fix
Do not define dma_supported to platform_dma_supported when building
the Xen kernel. This happend to work for DIG builds because the
swiotlb.c version of dma_supported compiles to identical code as
arch/i386/kernel/pci-dma-xen.c so the linker didn't complain.
Signed-off-by: Jes Sorensen <jes@sgi.com>
awilliam@xenbuild.aw [Tue, 12 Sep 2006 17:36:39 +0000 (11:36 -0600)]
[IA64] machvec cleanups
Move the DIG specific platform_dma_foo defines to where they belong.
Signed-off-by: Jes Sorensen <jes@sgi.com>
awilliam@xenbuild.aw [Tue, 12 Sep 2006 17:29:02 +0000 (11:29 -0600)]
[IA64] Add xen boot option "dom0_vcpus_pin"
This patch adds the xen boot option to pin Domain-0 VCPUs.
Signed-off-by: Kouya SHIMURA <kouya@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
atse@norwich.uk.xensource.com [Tue, 12 Sep 2006 15:33:33 +0000 (16:33 +0100)]
[XEND] Return an Internal Server Error via the Xend HTTP server.
This allows domain creation failures can be detected when done via HTTP.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Jimi Xenidis [Tue, 12 Sep 2006 15:01:04 +0000 (11:01 -0400)]
[POWERPC][XEN] Handle foreign page mappings correctly
The following patch performs the following:
- add free_rma() to go with allocate_rma()
- allocate_rma() returns -EINVAL if an RMA is already allocated
- PFN_TYPE_REMOTE is now PFN_TYPE_FOREIGN
- better checking of page_info in pfn2mfn()
- Stop using RPN and LPN and use PFN and MFN respectively
- Increase/decrease foreign domain refcount when another domain
maps/unmaps it
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Tue, 12 Sep 2006 14:53:46 +0000 (10:53 -0400)]
[POWERPC][XEN] make sure put_domain() is called in case of allocate_rma() failuer
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Tue, 12 Sep 2006 10:48:32 +0000 (06:48 -0400)]
[POWERPC][XEN] if crash_debug=n then at least dump a backtrace.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Tue, 12 Sep 2006 10:47:22 +0000 (06:47 -0400)]
[POWERPC][XEN] Detect bad spurious interrupt condition and panic instead of hang
When handing off the MPIC from Xen to Dom0, which is the current yet
not permamnet design, the MPIC can cause the processor to assert an
external interrupt when none is available. Rather then simply hang in
this condition we now panic so the user can see that there is indeed a
problem and identify it as this one.
This condition seems to be related to temperature and the probablity
of it occuring decreases if the machine is allowed to stay idle (not
in the Xen panic loop) for a minute or two.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Steven Hand [Tue, 12 Sep 2006 10:09:22 +0000 (11:09 +0100)]
This patch fixes return codes for the acm-related Xen management scripts
(error conditions) and addresses minor issues that 'pycheck' complains
about. It is tested with xm-test and by manually running the xm
commands. It also handles the return case (reported by Masaki Kanno)
that was missed in the originally patch.
Signed-off by: Reiner Sailer <sailer@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 11 Sep 2006 00:55:03 +0000 (01:55 +0100)]
[XEN] Revert changeset 11438. Needs fixing for PAE.
Signed-off-by: Keir Fraser <keir@xensource.com>
awilliam@xenbuild.aw [Sun, 10 Sep 2006 21:34:14 +0000 (15:34 -0600)]
[IA64][XEND] Fix getRequiredShadowMemory parameters
Parameter count changed in xen-unstable.hg 11417:
65a41e3206ac
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
awilliam@xenbuild.aw [Sun, 10 Sep 2006 20:52:57 +0000 (14:52 -0600)]
merge with xen-unstable.hg
awilliam@xenbuild.aw [Sun, 10 Sep 2006 20:31:54 +0000 (14:31 -0600)]
[IA64] Add VTI related perfc
This patch intends to add VTI-related and fw_hypercall counters.
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
Signed-off-by: Hiroya INAKOSHI <inakoshi.hiroya@jp.fujitsu.com>
awilliam@xenbuild.aw [Sun, 10 Sep 2006 20:26:27 +0000 (14:26 -0600)]
[IA64] Cleanup for PV-on-HVM for IPF
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
Ian Campbell [Sat, 9 Sep 2006 19:48:16 +0000 (20:48 +0100)]
[LINUX] Move .bss declaration after .data.* in x86_64 linker script.
Older binutils (prior to 2.16) have a problem with the linker script resulting
from the change introducing explicit segment maps. Namely does the
respective linker not properly handle @nobits sections (i.e. .bss) sitting
between @progbits ones (i.e. .data.*). The .bss section must therefore
be moved past all initialized sections (as is already the case on i386).
Replacement patch attached.
From: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
kfraser@ubuntu.eng.hq.xensource.com [Fri, 8 Sep 2006 23:45:39 +0000 (16:45 -0700)]
[XEN] Remove backpointer info from page type info. No longer used.
Replace with a flag for PAE final L2, needed for detecting PAE L2's
which contain Xen mappings.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@ubuntu.eng.hq.xensource.com [Fri, 8 Sep 2006 22:46:54 +0000 (15:46 -0700)]
Build fix.
kfraser@ubuntu.eng.hq.xensource.com [Fri, 8 Sep 2006 21:49:00 +0000 (14:49 -0700)]
[LINUX] console: ensure virtual console is disabled if mfn/evtchn
not provided.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 8 Sep 2006 18:15:11 +0000 (19:15 +0100)]
[HVM] pv drivers: Allocate hypercall area as an executable region.
We have to use __vmalloc() and __PAGE_KERNEL because vmalloc_exec()
and PAGE_KERNEL_EXEC are not exported to modules.
Signed-off-by: Keir Fraser <keir@xensource.com>
Tim Deegan [Fri, 8 Sep 2006 17:55:53 +0000 (18:55 +0100)]
[XEND] balloon enough memory to enable shadow mode before live migration.a
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Hollis Blanchard [Fri, 8 Sep 2006 17:28:49 +0000 (12:28 -0500)]
[XEN][POWERPC] fix timebase race in SMP init
cpuid was being set twice in cpu_online_map, and the first one was causing a
race in the timebase synchronization code.
Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Hollis Blanchard [Fri, 8 Sep 2006 15:23:56 +0000 (10:23 -0500)]
[XEN][POWERPC] Fix allocation error for xencomm "mini" descriptors.
Previous code worked correctly only if the allocated structure fit in the same
page as the base address. If the structure did not fit, the computation for the
allocation was incorrect. Noticed by Kiyokuni KAWACHIYA <KAWATIYA@jp.ibm.com>.
Signed-off-by: Maria Butrico <butrico@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Hollis Blanchard [Fri, 8 Sep 2006 15:22:45 +0000 (10:22 -0500)]
[XEN][POWERPC] Fix machine check build break.
Building exceptions.c with CRASH_DEBUG=y produces a build break, because
gcc complains about the unused variable.
Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
hollisb@localhost [Mon, 18 Sep 2006 18:08:58 +0000 (13:08 -0500)]
[LIBXC][POWERPC] Add missing xc_memory.c
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Hollis Blanchard [Thu, 7 Sep 2006 22:25:52 +0000 (17:25 -0500)]
[LIBXC][POWERPC] Update to latest flatdevtree snapshot.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Fri, 8 Sep 2006 01:46:33 +0000 (21:46 -0400)]
[POWERPC][XEN] Track HID4[RM_CI] state for machine check
This patch creates a PIR indexed character array so we can note when a
processor is in RM_CI mode. Machine checks can happen here and we
need to at least report it (and maybe one day) recover from it. Also
some fun with the SCOM.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Thu, 7 Sep 2006 16:09:18 +0000 (12:09 -0400)]
[POWERPC][XEN] Include io.h so we can match the globals defined here.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Thu, 7 Sep 2006 06:50:06 +0000 (02:50 -0400)]
[POWERPC][XEN] Synchronize Timebase on all CPUs
This patch add the necessary support to use
arch/powerpc/kernel/smp-tbsync.c
from Linux.
Original copyright and author are:
Copyright (C) 2003 Samuel Rydh (samuel@ibrium.se)
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Thu, 7 Sep 2006 06:21:17 +0000 (02:21 -0400)]
[POWERPC][XEN] Clear SLB entries on boot and other cleanups
This patch clears and SLB entries that might have been left behind by
Firmware and also cleans up the Save and Restore of the segments.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Thu, 7 Sep 2006 05:48:42 +0000 (01:48 -0400)]
[POWERPC][XEN] Machine Check Processing
This patch allows allows for a processor to report on the cause of the
machine check and possible even recover from it.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Jimi Xenidis [Thu, 7 Sep 2006 05:30:12 +0000 (01:30 -0400)]
[POWERPC][XEN] More Robust Memory Checking
This patch allows the platform to define the "IO Hole" of
addressibility and checks that even Dom0 does not try to Map "Remote"
memory that is not there. Also replaces some panic calls with WARN();
and returns failure.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>